using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;

namespace SinBiota.Model.Entities
{
    [LocalizedName("DepositaryUnit", NameResourceType = typeof(Strings))]
    public class DepositaryUnit : BaseEntity
    {
        [LocalizedName("Name", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual String Name { get; set; }

        [LocalizedName("Records", NameResourceType = typeof(Strings))]
        public virtual IList<DepositaryUnitRecord> DepositaryUnitRecords { get; private set; }

        public DepositaryUnit()
        {
            DepositaryUnitRecords = new List<DepositaryUnitRecord>();
        }

    }
}